#include <stdio.h>

#define BUFSIZE 50

typedef struct MYFILE
{
	//打开方式
	const char *OpenWay;

	//文件描述符
	int inode;

	//缓冲区
	char *buffer;

	//缓冲区当前数据大小
	int buflen;

}MYFILE;


MYFILE *myfopen(const char *filepath, const char* way);
void myclose(MYFILE *file);
int mywrite(MYFILE *file, void *str, int len);
void myfflush(MYFILE *file);


